class StopWords:
	wordlist = []
	def __init__(self,filename=None):
		file = open(filename,"rb")
		words = file.read()
		self.wordlist = words.split("\n")
		# for word in self.wordlist:
			# try:
				# word = word.encode('utf-8')
			# except UnicodeDecodeError:
				# print word
			
	def isStopWord(self, wordarg=None):
		for word in self.wordlist:
			print word
		if wordarg in self.wordlist:
			return True
		else:
			return False
if __name__=="__main__":
	st = StopWords("dat/stopwords")
	
